<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFocusInvestOrgTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
        Schema::create('focus_invest_org', function(Blueprint $table)
        {
            $table->increments('id') ;                          //关注标识
            $table->unsignedInteger('user_id') ;                //用户标识
            $table->unsignedInteger('org_id') ;                 //被关注的投资机构标识
            $table->unsignedInteger('status')->default(1) ;     // 状态

            $table->softDeletes();
            $table->timestamps();
        });
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('focus_invest_org');
	}

}
